package com.agent.mapper;

import com.agent.entity.CourseSchedule;
import com.agent.mapper.provider.CourseScheduleBatchSqlProvider;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CourseScheduleMapper extends BaseMapper<CourseSchedule> {

    /**
     * 批量插入课程安排
     * @param entityList 课程安排列表
     * @return 插入的记录数
     */
    @InsertProvider(type = CourseScheduleBatchSqlProvider.class, method = "insertBatch")
    int insertBatchSomeColumn(@Param("list") List<CourseSchedule> entityList);

}

